package com.biz.primus.app.erpbridge.degraded;

import com.biz.primus.app.erpbridge.feign.OmsFeignClient;
import com.biz.primus.app.erpbridge.vo.oms.request.DepotOrderOperationRequest;
import com.biz.primus.model.oms.vo.OmsOrderReturnVo;
import com.biz.primus.model.oms.vo.OmsOrderVo;
import com.biz.primus.model.oms.vo.OrderQueryVo;
import com.biz.primus.model.oms.vo.OrderReturnQueryVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Collections;
import java.util.List;

/**
 * @author yanweijin
 * @date 2017/11/25
 */
@Component
@Slf4j
public class DegradedOmsFeignClient implements OmsFeignClient{


	@Override
	public List<OmsOrderVo> findOrders(OrderQueryVo query) {
		log.warn("进入服务降级模块");
		return Collections.emptyList();
	}

	@Override
	public List<OmsOrderReturnVo> findReturns(OrderReturnQueryVo query) {
		return Collections.emptyList();
	}

	@Override
	public OmsOrderVo orderDetail(@RequestParam("depotCode") String depotCode, @RequestParam("orderCode") String orderCode) {
		return null;
	}

	@Override
	public OmsOrderReturnVo returnDetail(@RequestParam("depotCode") String depotCode, @RequestParam("orderCode") String orderCode) {
		return null;
	}

	@Override
	public void printOrder(@RequestBody DepotOrderOperationRequest req) {

	}

	@Override
	public void outbound(@RequestBody DepotOrderOperationRequest req) {

	}
}
